﻿package es.dk.hl.control {
	
	import com.adobe.cairngorm.control.FrontController;
	
	import es.dk.hl.commands.FaceBook_CreateAndSetAssociation_Command;
	import es.dk.hl.commands.FaceBook_Delete_Command;
	import es.dk.hl.commands.FaceBook_PreLogin_Command;
	import es.dk.hl.commands.FaceBook_Save_Command;
	import es.dk.hl.commands.FaceBook_ValidateLogin_Command;
	import es.dk.hl.commands.Photo_AddToWall_Command;
	import es.dk.hl.commands.Photo_Get_Command;
	import es.dk.hl.commands.Wall_ListenClickPhoto_Command;
	import es.dk.hl.event.FBEvent;
	import es.dk.hl.event.PhotoEvent;
	import es.dk.hl.event.WallEvent;

	public class Controller extends FrontController {
		
		public function Controller() {
			addCommand(PhotoEvent.PhotoEvent_GET,Photo_Get_Command);			
			addCommand(PhotoEvent.PhotoEvent_ADD_TO_WALL,Photo_AddToWall_Command);
			addCommand(WallEvent.WallEvent_ListenClickPhoto,Wall_ListenClickPhoto_Command);
			addCommand(FBEvent.FBEvent_PRE_LOGIN,FaceBook_PreLogin_Command);
			addCommand(FBEvent.FBEvent_VALIDATELOGIN_LOGIN,FaceBook_ValidateLogin_Command);
			addCommand(FBEvent.FBEvent_SAVE,FaceBook_Save_Command);
			addCommand(FBEvent.FBEvent_CREATEANDSET,FaceBook_CreateAndSetAssociation_Command);
			addCommand(FBEvent.FBEvent_DELETE,FaceBook_Delete_Command);
		}
	}
}